package com.zzxy.spring.dao.impl;

import com.zzxy.spring.dao.SpringDao;
import com.zzxy.spring.entity.User;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public class SpringDaoImpl extends JdbcDaoSupport implements SpringDao {
    @Override
    public int insert(User user) {
        return this.getJdbcTemplate().update("insert into t_user values (null,?,?)",user.getUsername());
    }
}